package com.bidevalution.business.dto;

import io.swagger.annotations.ApiModelProperty;

/**
 * Created by glodon on 2019-08-16.
 */
public class VoteResultDto implements Comparable<VoteResultDto>{
    @ApiModelProperty("投票结果")
    private String voteResult;
    @ApiModelProperty("专家得票数")
    private int count;

    public String getVoteResult() {
		return voteResult;
	}

	public void setVoteResult(String voteResult) {
		this.voteResult = voteResult;
	}

	public void setCount(int count) {
        this.count = count;
    }

    public int getCount() {
        return count;
    }

    @Override
    public int compareTo(VoteResultDto voteResultDto){
        if(voteResultDto.count > this.count) {
            return 1;
        } else if(voteResultDto.count == this.count) {
            return 0;
        } else {
            return -1;
        }
    }
}
